﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using Evpo.ContactData.Common;

namespace Evpo.ContactData.Data
{
    public class MaritalStatusAdapter : DictionaryItemAdapter
    {
        public MaritalStatusAdapter(Connection conn)
            : base(conn)
        {
        }

        public DictionaryItem GetMaritalStatus(int ID)
        {
            return GetDictionaryItem<DictionaryItem>(ID);
        }


        public List<DictionaryItem> GetMaritalStatuses()
        {
            return GetDictionaryItems<DictionaryItem>(SProcs.GetMaritalStatuses);
        }

        protected override string GetItemSProc
        {
            get
            {
                return SProcs.GetMaritalStatus;
            }
        }

        protected override string DictionaryName
        {
            get
            {
                return "MaritalStatus";
            }
        }
    }
}
